/*
 * CSicAblationMaterial.h
 *用于计算纤维增强
 *  Created on: 2017年11月7日碳化硅符合材料在空气中的氧化烧蚀
 *      Author: liuxiao
 */

/****************************************************************/
/*                        Instruction                           */
/* This is the Material       */
/* to compute density for multphase pyrolysis matreial.         */
/* the pyrolysis model is single-phase Arrhenius relation(pyrolysis area,not surface model) .         */
/* the first version did not include pyrolysis gas properties(created at 2017.04.21)*/


#pragma once

#include "Material.h"
#include "LinearInterpolation.h"

class Function;

class CSicAblationMaterial : public Material
{
public:
	CSicAblationMaterial(const InputParameters & parameters);

protected:
  virtual void computeProperties();
   MaterialProperty<Real> &_C_O2e;//边界层外缘氧气质量分数
   MaterialProperty<Real> & _C_N2e;//边界层外缘氮气质量分数
   MaterialProperty<Real> & Z_N2O2;//氮气氧气分压比
   MaterialProperty<Real> & _P0_O2;//氧气分压
   MaterialProperty<Real> & _P0_N2;//氮气分压
   MaterialProperty<Real> & _MO2;//氧气相对分子质量
   MaterialProperty<Real> & _MN2;//氮气相对分子质量
   MaterialProperty<Real> & _volume_fraction_C;



  Real  _volume_fraction_A_value;
  Real  _volume_fraction_B_value;
  Real  _volume_fraction_C_value;

};

template<>
InputParameters validParams<CSicAblationMaterial>();
